@{
    ViewData["Title"] = "[tblTitle]";
}

<!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper" id="app">
        <!-- Content Header (Page header) -->
        <section class="content-header ">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <h1>[tblTitle]</h1>
                    </div>
                    <div class="col-sm-6">
                        
                    </div>
                </div>
            </div><!-- /.container-fluid -->
        </section>
        <!-- Main content -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-12">
                    </div>
                </div>
                <div class="row">
                    <div class="col-12">
                        <!-- Default box -->
                        <div class="card card-primary card-outline" style="margin-bottom:3px;">
                            <div class="card-body">
                                <form class="form" id="formquery" method="post">
				[loop start]
                                    <label>[fldTitle]：</label>
                                    <label><input name="[fldName]" id="[fldName]" class="form-control autowidth" v-model="formdata.[fldName]" /></label>
				[loop end]^

                                    <label>
                                        <input type="hidden" id="pageindex" name="pageindex" v-model="formdata.pageindex">
                                        <input type="hidden" id="pagesize" name="pagesize" v-model="formdata.pagesize">
                                        <a id="btnsubmit" class="btn btn-info btn-sm" onclick="getListData(1)">
					<i class="fa fa-search"></i> 查询</a>
                                        <a id="btnadd" class="btn btn-warning  btn-sm" onclick="popupEdit(0)">
					<i class="fa fa-plus-square"></i> 添加</a>
                                    </label>

                                </form>
                            </div>
                        </div>

                        <div class="card">



                            <!-- /.card-header -->
                            <div class="card-body">


                                <table id="tbl{tblName}" class="table table-bordered table-hover">
                                    <thead>
                                        <tr>
                                            <th>编号</th>
  [loop start]
                                            <th>[fldTitle]</th>
  [loop end]^
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr v-cloak :data-id="info.id" v-for="(info, index) in result.rows">
                                            <td>[[info.id]]</td>
  [loop start]
                                            <td>[[info.[fldName]]]</td>
  [loop end]^
                                            <td class="operate">
                                                @*<a class="btn btn-primary btn-sm" href="javascript:;" v-on:click="popupView(info.id);">
                                                    <i class="fas fa-folder">
                                                    </i>
                                                    查看
                                                </a>*@
                                                <a class="btn btn-info btn-sm" href="javascript:;" v-on:click="popupEdit(info.id);">
                                                    <i class="fas fa-pencil-alt">
                                                    </i>
                                                    修改
                                                </a>
                                                <a class="btn btn-danger btn-sm" href="javascript:;" v-on:click="popupDelete(info.id);">
                                                    <i class="fas fa-trash">
                                                    </i>
                                                    删除
                                                </a>

                                            </td>
                                        </tr>


                                    </tbody>

                                </table>

                                <div class="pagination ue-clear"></div>
                            </div>
                            <!-- /.card-body -->
                        </div>
                        <!-- /.card -->


                    </div>
                </div>
            </div>
        </section>
        <!-- /.content -->
    </div>
<!-- /.content-wrapper -->

<script src="/Views/Admin/{subFolder}/[tblName]List.js"></script>
